modelmenuitem: Care about GtkAccelLabel in get_text
authorTimm Bäder <mail@baedert.org>
Sun, 16 Jul 2017 15:19:59 +0000 (17:19 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:16 +0000 (21:27 -0400)
gtk/gtkmodelmenuitem.c

index e04ae18a200a51a73758fce8887824b4a5504160..9afca4386fec2ba53d0f7e0d4155126b84b60203 100644 (file)
@@ -273,6 +273,8 @@ gtk_model_menu_item_get_text (GtkModelMenuItem *item)
 
   if (GTK_IS_LABEL (child))
     return gtk_label_get_text (GTK_LABEL (child));
+  else if (GTK_IS_ACCEL_LABEL (child))
+    return gtk_accel_label_get_label (GTK_ACCEL_LABEL (child));
 
   if (GTK_IS_CONTAINER (child))
     {